package com.vincce.sport.entity;

import java.util.Date;

import com.vincce.sport.core.utils.ConvertUtil;
/**
 * 广告实体类
 * @author ex-yanjun
 *
 */
public class Advert {
	private Long id;                 //ID
	private String name;//广告位名称
	private String title;//标题
	private String advertImg;
	private String advertUrl;//广告指向地址
	private String content;//广告内容
	private String memo;//备注
	private Integer status;//广告状态（1，启用；2，关闭）
	private Integer createUser;      //创建人
    private Date createTime;         //创建时间
    private Integer updateUser;      //更新人
    private Date updateTime;         //更新时间
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAdvertImg() {
		return advertImg;
	}
	public void setAdvertImg(String advertImg) {
		this.advertImg = advertImg;
	}
	public String getAdvertUrl() {
		return advertUrl;
	}
	public void setAdvertUrl(String advertUrl) {
		this.advertUrl = advertUrl;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public Integer getStatus() {
		if(status==null){
			return 1;
		}
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Integer getCreateUser() {
		return createUser;
	}
	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}
	public String getCreateTime() {
		return ConvertUtil.format("yyyy-MM-dd", createTime);
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Integer getUpdateUser() {
		return updateUser;
	}
	public void setUpdateUser(Integer updateUser) {
		this.updateUser = updateUser;
	}
	public String getUpdateTime() {
		return ConvertUtil.format("yyyy-MM-dd", updateTime);
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	
}
